<%-- 
    Document   : state
    Created on : Apr 16, 2012, 4:39:30 PM
    Author     : prateekpatil
--%>


<%@page import="java.util.*"%>
<%@page import="cs425proj.model.*"%>
<%
String city=request.getParameter("count");  
 String buffer="<select name='state' id='state'><option value='-1'>Movie</option>";  
  movieDetail mdobj = new movieDetail();
  ArrayList<String> cityList = mdobj.getMoviesInCity(city);
   for(int i=0;i<cityList.size();i++){
   buffer=buffer+"<option value='"+cityList.get(i) +"'>"+cityList.get(i)+"</option>";  
   }  
 buffer=buffer+"</select>";  
 response.getWriter().println(buffer); 
 

 %>